<template >
  <div>
    <el-menu class="menu" mode="horizontal"
    :default-active="$route.path">
      <el-menu-item index="/purchase/offline" @click="$router.replace('/purchase/offline')">线下采购列表</el-menu-item>
      <el-menu-item index="/purchase/online" @click="$router.replace('/purchase/online')">线上采购列表</el-menu-item>
    </el-menu>
    <router-view></router-view>
  </div>
</template>

<style scoped>
.menu {
  margin-bottom: 12px;
}
</style>
